 <?php
   header("Content-type:text/html;charset=utf-8");
   $I_Level = $_POST['I_Level'];
   $I_UserName = $_POST['I_UserName'];
   $I_PassW = $_POST['I_PassW'];
   $I_Name = $_POST['I_Name'];
   $I_Sex = $_POST['I_Sex'];
   $I_IDNumber = $_POST['I_IDNumber'];
   $I_tel = $_POST['I_tel'];
   $I_TelCheck = $_POST['I_TelCheck'];
   $I_Area = $_POST['I_Area'];
   $I_Email = $_POST['I_Email'];
   $I_PageCheck = $_POST['I_PageCheck'];
   $json_arr = array("I_Level"=>$I_Level,"I_UserName"=>$I_UserName,"I_PassW"=>$I_PassW,"I_Name"=>$I_Name,"I_Sex"=>$I_Sex,"I_IDNumber"=>$I_IDNumber,"I_tel"=>$I_tel,"I_TelCheck"=>$I_TelCheck,"I_Area"=>$I_Area,"I_Email"=>$I_Email,"I_PageCheck"=>$I_PageCheck);
   $json_obj = json_encode($json_arr);
   
   $url =  "192.168.0.221:8080/test/user/";
   $ch = curl_init();
   curl_setopt($ch,CURLOPT_URL,$url); /*获取URL的内容*/
   //do a post
   $data = $json_arr;
   curl_setopt($ch,CURLOPT_POST,true);
   curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
   //curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);/*获取的内容不输出*/
   curl_exec($ch);/*输出获取的内容*/
   curl_close($ch);
   print_r("");
 ?>